package com.sykj.bsc.hyx.service.lmpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sykj.bsc.hyx.bean.Bis_wechat_record;
import com.sykj.bsc.hyx.mapper.Bis_wechat_recordMapper;
import com.sykj.bsc.hyx.service.Bis_wechat_recordService;
import com.sykj.bsc.util.Tools;
import com.sykj.bsc.zjj.bean.Bis_custom_user;
@Service
public class Bis_wechat_recordServicelmpl  implements Bis_wechat_recordService{
	@Autowired
	private Bis_wechat_recordMapper bis_wechat_recordMapper;
	@Override
	public List<Bis_wechat_record> selectBis_wechat_record(Map map) {
		return this.bis_wechat_recordMapper.selectBis_wechat_record(map);
	}
	//删除
	@Override
	public void delete(String ids) {
		String[] array=ids.split(",");
		for(String id:array){
			System.out.println(id);
			this.bis_wechat_recordMapper.delete(Integer.valueOf(id));
		}
	}
	@Override
	public List<Bis_custom_user> selectBis_custom_user(Map map) {
		return this.bis_wechat_recordMapper.selectBis_custom_user(map);
	}
	
	
		
	
	@Override
	public void saveBis_wechat_record(Map map) {
		String sendUserId=(String)map.get("send_user_id");
		if(Tools.isNotNull(sendUserId)&&sendUserId.indexOf(",")>0){
			this.bis_wechat_recordMapper.saveBis_wechat_record(map);
		}
		
		
	}
	@Override
	public Bis_custom_user getById(String custom_user) {
		return this.bis_wechat_recordMapper.getById(custom_user);
	}

}
